libxl: introduce libxl_retrieve_domain_configuration
authorWei Liu <wei.liu2@citrix.com>
Tue, 16 Sep 2014 10:01:15 +0000 (11:01 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 17 Sep 2014 18:59:48 +0000 (19:59 +0100)
commit9d5550ffc56e72a40c231cead3594403405f2e7e
tree90fae7896cb3609d5293a4819a3219baebbeaf1f
parent6c0e7d1032363beb308c8ad11ce6c107cf047e26
libxl: introduce libxl_retrieve_domain_configuration

Introduce a new public API to return domain configuration. This returned
configuration can be used to rebuild a domain.

Note that this configuration only describes the configuration necessary
to reproduce the guest visible state and does not necessarily include
specific decisions made by the toolstack regarding its current
incarnation (e.g. disk backend) unless they were specified by the
application when the domain was created.

With this approach we can preserve what user has provided in the
original configuration as well as valuable information from xenstore.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h